﻿using System;
using System.Threading.Tasks;
using MassTransit;

namespace Masstransit.RabbitMQ.GreetingEvent.SubscriberB
{
    public class GreetingEventConsumer:IConsumer<Greeting.Message.GreetingEvent>
    {
        public async Task Consume(ConsumeContext<Greeting.Message.GreetingEvent> context)
        {
            await Console.Out.WriteLineAsync($"receive greeting event: id {context.Message.Id}");
        }
    }
}